<template>
  <div class="container">
    <div class="inner">
      <div class="search-box">
        <div class="search-form">
          <form @submit.prevent="Search">
            <div class="search-con">
              <div class="select">
                <span>
                  <span>职位类型</span>
                  <i class="iconfont icon-arrow-down-filling"></i>
                </span>
              </div>
              <input type="text" autofocus placeholder="搜索职位、公司" />
            </div>
            <button>搜索</button>
          </form>
        </div>
        <div class="search-hot">
          <span>热门职位:</span>
          <a
            href="/c101280600/?query=%E7%A8%8E%E5%8A%A1&industry=&position="
            ka="hot-position-1"
            >税务</a
          >
          <a
            href="/c101280600/?query=%E7%94%9F%E7%89%A9%E5%88%B6%E8%8D%AF&industry=&position="
            ka="hot-position-2"
            >生物制药</a
          >
          <a
            href="/c101280600/?query=%E6%9C%8D%E8%A3%85%2F%E7%BA%BA%E7%BB%87%2F%E7%9A%AE%E9%9D%A9%E8%B7%9F%E5%8D%95&industry=&position="
            ka="hot-position-3"
            >服装/纺织/皮革跟单</a
          >
          <a
            href="/c101280600/?query=%E7%94%B5%E5%AD%90%E5%B7%A5%E7%A8%8B%E5%B8%88&industry=&position="
            ka="hot-position-4"
            >电子工程师</a
          >
          <a
            href="/c101280600/?query=%E5%B8%82%E5%9C%BA%E6%80%BB%E7%9B%91&industry=&position="
            ka="hot-position-5"
            >市场总监</a
          >
          <a
            href="/c101280600/?query=%E6%8A%95%E8%B5%84%E6%80%BB%E7%9B%91%2FVP&industry=&position="
            ka="hot-position-6"
            >投资总监/VP</a
          >
          <a
            href="/c101280600/?query=%E7%A1%AC%E4%BB%B6%E9%A1%B9%E7%9B%AE%E7%BB%8F%E7%90%86&industry=&position="
            ka="hot-position-7"
            >硬件项目经理</a
          >
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "SearchInput",
  methods: {
    Search() {
      console.log(123);
    },
  },
};
</script>

<style lang="less" scoped>
div.container {
  background-color: #e1f2f4;

  .inner {
    width: 1184px;
    height: 146px;
    margin: 0 auto;
    .search-box {
      width: 900px;
      height: 102px;
      padding-top: 24px;
      margin: 0 auto;
      .search-form {
        width: 900px;
        height: 50px;
        border: 2px solid #00bebd;
        border-radius: 10px;
        form {
          display: flex;
          .search-con {
            display: flex;
            width: 780px;
            height: 50px;
            .select {
              background-color: #fff;
              border-radius: 10px;
              border: none;
              padding: 11px 18px;
              width: 84px;

              span {
                // width: 100%;
                i {
                  font-size: 10px;
                  color: #00bebd;
                  // display: inline-block;
                  // margin-left: 10px;
                }
                span {
                  color: #222;
                  font-size: 16px;
                  vertical-align: middle;
                  overflow: hidden;
                  text-overflow: ellipsis;
                  display: inline-block;
                  cursor: pointer;
                  &:hover {
                    color: #00bebd;
                  }
                }
              }
            }
            input {
              padding: 11px 18px;
              width: 626px;
              font-size: 16px;
              height: 28px;
              line-height: 30px;
              color: #414a60;
              border: 0;
              outline: none;
            }
          }
          button {
            width: 128px;
            background: #00bebd;
            font-size: 20px;
            border: none;
            color: white;
            cursor: pointer;
          }
        }
      }
      .search-hot {
        height: 41px;
        margin-bottom: 20px;
        overflow: hidden;
        box-sizing: border-box;
        width: 794px;
        font-size: 14px;
        padding: 16px 0 32px 0;
        span {
          margin-right: 12px;
        }
        a {
          background: rgba(255, 255, 255, 0.8);
          border-radius: 6px;
          color: #00a6a7;
          line-height: 20px;
          padding: 2px 8px;
          margin-right: 12px;
          margin-bottom: 10px;
          display: inline-block;
          text-decoration: none;
          &:hover {
            color: #fcfcfd;
            background: #00bebd;
          }
        }
      }
    }
  }
}
</style>
